package com.haixiaoke.saas.dept.domain;

import com.haixiaoke.saas.common.annotation.Excel;
import com.haixiaoke.saas.common.core.domain.BaseEntity;
import com.haixiaoke.saas.material.domain.MaterialGroup;
import lombok.*;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.ArrayList;
import java.util.List;

/**
 * 企业端部门管理对象 biz_dept
 * 
 * @author panda
 * @date 2023-12-27
 */
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class BizDept extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long deptId;

    /** 父部门id */
    @Excel(name = "父部门id")
    private Long parentId;

    /** 祖级列表 */
    @Excel(name = "祖级列表")
    private String ancestors;

    /** 部门名称 */
    @Excel(name = "部门名称")
    private String deptName;

    /** 显示顺序 */
    @Excel(name = "显示顺序")
    private Integer orderNum;

    /** 负责人 */
    @Excel(name = "负责人")
    private String leader;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String phone;

    /** 邮箱 */
    @Excel(name = "邮箱")
    private String email;

    /** 部门状态（0正常 */
    @Excel(name = "部门状态", readConverterExp = "部门状态（0正常")
    private String status;

    /** 删除标志（0代表存在 */
    private String delFlag;

    /**
     * 子素材
     */
    private List<BizDept> children = new ArrayList<BizDept>();

    /**
     * 小区编码集合
     */
    private List<String> estateIds;
}
